<%-- 
    Document   : login
    Created on : 2012. 4. 23, 오후 3:42:46
    Author     : jeong
--%>

<%@page import="com.webproject.jsp.common.CommonUtil"%>
<%@page import="com.webproject.member.UsersManager"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    request.setCharacterEncoding("UTF-8");
    request.setAttribute("PAGETITLE", "로그인");
    
    String id = CommonUtil.strChkNull(request.getParameter("id"),"");
    String password = CommonUtil.strChkNull(request.getParameter("password"),"");
    
    UsersManager user = UsersManager.getInstance();
    int result = user.checkAuth(id, password);
    
    if(result == 1) {
        session.setAttribute("ID", id);
    }
    
    request.setAttribute("LOGINRESULT", new Integer(result));

%>
<jsp:forward page="/template/template.jsp">
    <jsp:param name="CONTENTPAGE" value="/member/loginView.jsp" />
</jsp:forward>